<%@ page language="java" import="java.util.*,shop.dao.*" 	pageEncoding="utf-8"%>
<% 
	String username=(String)session.getAttribute("username");
	if(username=="" || username==null)
	{
		out.println("<script language='javascript'>alert('请先登录!');window.location.href='../login.jsp';</script>");
	}
	else
	{
	Vector cart=(Vector)session.getAttribute("cart");
	cart.removeAllElements();	
	response.sendRedirect("../shop_cart.jsp");
	}
 %>